#ifndef __IF_H__
#define __IF_H__

#include "typetools.h"

namespace mpl
{
	template<bool flag, class T1, class T2>
	struct if_;

	template<class T1, class T2>
	struct if_<true, T1, T2>
	{
		typedef T1 type;
	};

	template<class T1, class T2>
	struct if_<false, T1, T2>
	{
		typedef T2 type;
	};

}

#endif
